﻿package mortal.game.view.skill
{
    import flash.events.*;
    import mortal.game.manager.*;
    import mortal.game.resource.*;
    import mortal.game.view.common.*;
    import mortal.game.view.guide.*;

    public class SkillHintIcon extends HintBaseIcon
    {
        private static var _instance:SkillHintIcon;

        public function SkillHintIcon(param1:String)
        {
            super(param1);
            return;
        }// end function

        override protected function clickHandler(event:MouseEvent) : void
        {
            GuideController.currentGuideItemWin = ModuleType.Skills;
            GameManager.instance.popupModuleType(ModuleType.Skills);
            return;
        }// end function

        public static function get instance() : SkillHintIcon
        {
            if (!_instance)
            {
                _instance = new SkillHintIcon(ImagesConst.skillHintIcon);
            }
            return _instance;
        }// end function

        public static function isShowing() : Boolean
        {
            if (_instance == null)
            {
                return false;
            }
            return !_instance.isHide;
        }// end function

        public static function getMyInstance() : SkillHintIcon
        {
            return _instance;
        }// end function

    }
}
